package com.th.supcom.pds.deptdispensary.client.widget;

import com.extjs.gxt.ui.client.widget.button.Button;
import com.th.supcom.pds.common.client.model.icon.Resources;

/**
 * 护理单元摆药配置按钮
 * 
 * @author 杨冲
 */
public class DeptVsDispensaryButtons
{

    private Button m_addButton;
    private Button m_editButton;
    private Button m_deleteButton;
    private Button m_refreshButton;
    private Button m_confirmButton;
    private Button m_cancelButton;
    private Button m_addContinueButton;

    /**
     * 构造函数
     */
    public DeptVsDispensaryButtons ()
    {
        createButtons ();
    }

    /**
     * 创建按钮
     */
    private void createButtons ()
    {
        m_addButton = new Button ("新增(A)");
        m_addButton.setIcon (Resources.s_ICONS.add ());

        m_editButton = new Button ("编辑(X)");
        m_editButton.setIcon (Resources.s_ICONS.edit ());

        m_deleteButton = new Button ("删除(D)");
        m_deleteButton.setIcon (Resources.s_ICONS.delete ());

        m_refreshButton = new Button ("刷新(F)");
        m_refreshButton.setIcon (Resources.s_ICONS.refresh ());

        m_confirmButton = new Button ("确认(O)");
        m_cancelButton = new Button ("取消(C)");

        m_addContinueButton = new Button ("确认并继续(W)");
    }

    /**
     * 获取新增按钮
     * 
     * @return
     */
    public Button getAddButton ()
    {

        return m_addButton;
    }

    /**
     * 获取编辑按钮
     * 
     * @return
     */
    public Button getEditButton ()
    {

        return m_editButton;
    }

    /**
     * 获取删除按钮
     * 
     * @return
     */
    public Button getDeleteButton ()
    {

        return m_deleteButton;
    }

    /**
     * 获取刷新按钮
     * 
     * @return
     */
    public Button getRefreshButton ()
    {

        return m_refreshButton;
    }

    /**
     * 获取确认按钮
     * 
     * @return
     */
    public Button getConfirmButton ()
    {

        return m_confirmButton;
    }

    /**
     * 获取取消按钮
     * 
     * @return
     */
    public Button getCancelButton ()
    {

        return m_cancelButton;
    }

    /**
     * 获取新增并继续按钮
     * 
     * @return
     */
    public Button getAddContinueButton ()
    {

        return m_addContinueButton;
    }

}
